::selection {
    background-color: #FF6600;
    color: #0A39C7;
}

::-moz-selection {
    background-color: #FF6600;
    color: #0A39C7;
}

body::-webkit-scrollbar {
    width: 7px;
}
        
body::-webkit-scrollbar-thumb {
    background: #50c9c3;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #4a90e2;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Mini Kart AI Modal */
#openAiAssistant {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1200;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  #openAiAssistant {
    bottom: 10px;
    right: 10px;
  }
}

#openAiAssistant {
  z-index: 999;
}

.ai-product-card {
  width: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Roboto', Arial, sans-serif;
}

.ai-product-card:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ai-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin-bottom: 0px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
}

.ai-product-info {
  padding: 0 8px;
}

.ai-product-info strong {
  font-size: 14px;
  color: #212121;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  margin-bottom: -30px;
}

.ai-product-info span {
  font-size: 16px;
  font-weight: bold;
  color: #2874f0;
  display: block;
  margin: 8px 0;
}

.ai-view-btn {
  background: #fb641b;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  margin-top: -50px;
  transition: background 0.3s ease;
}

.ai-view-btn:hover {
  background: #e05a17;
}

/* Feedback Buttons */
#feedbackButtons button {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 5px 10px;
  cursor: pointer;
  margin: 5px;
  transition: background-color 0.3s, transform 0.2s;
}

#feedbackButtons i {
  font-size: 15px;
}

#feedbackButtons button:hover {
  background-color: #ddd;
  transform: scale(1.05);
}

/* Product View Overlay */
.product-view-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
  animation: floatingModalOpen 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  .product-view-overlay {
    padding: 0;
  }
}

@keyframes floatingModalOpen {
  0% {
    transform: translateY(0) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.product-view-container {
  background: white;
  border-radius: 10px;
  max-width: 1250px;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 20px;
}

@media (max-width: 768px) {
  .product-view-container {
    max-height: 100%;
    border-radius: 0;
  }
}

.close-product-view {
  position: fixed;
  top: 30px;
  right: 15px;
  background: none;
  border: none;
  font-size: 35px;
  cursor: pointer;
  color: #000000;
}

@media (max-width: 768px) {
  .close-product-view {
    top: -10px;
    right: 5px;
    font-size: 50px;
    color: #000000;
  }
}

.product-view-content {
  display: flex;
  gap: 40px;
}

.product-view-images {
  flex: 1;
  max-width: 500px;
}

.main-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 5px;
}

.thumbnail-container {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
}

.thumbnail-container::-webkit-scrollbar {
  display: none;
}

.thumbnail-container img {
  width: 70px;
  max-height: 70px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
}

.thumbnail-container img:hover {
  border-color: #333;
}

.more-thumbnails {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  min-width: 70px;
  min-height: 70px;
}

.product-view-details {
  flex: 1;
}

.product-view-title {
  margin-bottom: 15px;
}

.product-view-details h1 {
  font-size: 20px;
  color: #333;
  line-height: 30px;
  margin-bottom: 15px;
  margin-top: -10px;
  text-align: justify;
}

@media (min-width: 768px) {
    .product-view-details h1 {
        margin-top: 25px;
    }
}

.product-view-rating {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffc107;
}

#productViewStars {
  font-size: 20px;
}

#productViewReviews {
  color: #777;
}

.product-view-rating .stars {
  color: #ffc107;
}

.stock-status.in-stock {
  color: #28a745;
}

.stock-status.out-of-stock {
  color: #dc3545;
}

.product-view-pricing {
  margin-bottom: 20px;
}

.current-price {
  font-size: 20px;
  font-weight: bold;
}

.original-price {
  font-size: 15px;
  text-decoration: line-through;
  margin-left: 10px;
}

.discount-badge {
  background: #ff4444;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  margin-left: 10px;
}

.product-view-description {
  margin-bottom: 25px;
  line-height: 1.6;
}

.product-view-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: center;
}

.product-view-meta {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.meta-item {
  margin-bottom: 10px;
  display: flex;
}

.meta-label {
  font-weight: bold;
  min-width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
  .product-view-content {
    flex-direction: column;
  }
  
  .product-view-container {
    padding: 15px;
  }
}

@media (min-width: 768px) {
  .close-product-view {
    position: absolute;
    top: -5px;
    right: 7px;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #000000;
  }
}

/* Coupon Code Styles */
.product-view-coupon {
  display: flex;
  margin-bottom: 20px;
  gap: 10px;
  align-items: center;
}

#couponCodeInput {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
}

#applyCouponBtn {
  display: block;
  padding: 10px 15px;
  color: rgb(0, 0, 0);
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

#couponMessage {
  display: block;
  margin-left: 10px;
  font-size: 14px;
  color: #28a745;
}

#couponMessage.error {
  color: #dc3545;
}

.buy-now-btn {
  padding: 10px 20px;
  width: 50%;
  background: #ff5722;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.buy-now-btn:hover {
  background: #e64a19;
}

.buy-now-btn i {
  margin-right: 3px;
}